package com.lovo.service;

import com.github.pagehelper.PageInfo;
import com.lovo.model.User;


public interface UserService{


    boolean register(User u);

    boolean deleteUser(String userId);

    boolean updateUser(User u);

    boolean hasRoles(int userId, Integer[] roleIds);

    int[] getRoleIds(int userId);

    User login(User u);

    User getUserById(int userId);

    PageInfo<User> listByPage(int pageNo,int pageSize,User user);
}
